﻿using System.ComponentModel.DataAnnotations;

namespace ManagementApi.Models.Cms
{
    public class CreateLeaseForm
    {
        /// <summary>
        /// 客户id
        /// </summary>
        [Display(Name = "客户信息")]
        [Required(ErrorMessage = "{0}不能为空")]
        public int? CustomId { get; set; }

        /// <summary>
        /// 开始租赁日期
        /// </summary>
        [Display(Name = "开始租赁日期")]
        [Required(ErrorMessage = "{0}不能为空")]
        public DateTime StartDt { get; set; }

        /// <summary>
        /// 结束租赁日期
        /// </summary>
        [Display(Name = "结束租赁日期")]
        [Required(ErrorMessage = "{0}不能为空")]
        public DateTime EndDt { get; set; }

        /// <summary>
        /// 支付金额
        /// </summary>
        [Display(Name = "支付金额")]
        [Required(ErrorMessage = "{0}不能为空")]
        public decimal PayAmount { get; set; }
        /// <summary>
        /// 送货地址
        /// </summary>
        [Display(Name = "送货地址")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string? Address { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "送货地址")]
        public string? Remark { get; set; }

        #region  客户信息
        /// <summary>
        /// 客户姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 客户电话
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        public string? CardNo { get; set; }

        #endregion
    }
}
